package com.woniuxy.microgoldservice.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author hongbin
 * @date 2021-04-19 16:11
 * Description：
 */
@RefreshScope
@RestController
public class IndexController {
    @GetMapping("/")
    public String index(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("msg", "http://192.168.2.108:8088");
        return JSONObject.toJSONString(map);
    }
}
